﻿{#template MAIN}
<!-- This template share between the request form list (approval) and default page (edit and view) -->
<table id="dataGrid" cellpadding="5" cellspacing="0" class="grid">
    <thead>
        <tr>
            <th>
                Seq
            </th>
            <th>
                Authorizer
            </th>
            <th>
                Authorized person
            </th>
            <th>
                Start
            </th>
            <th>
                End
            </th>
            <th>
                #
            </th>
        </tr>
    </thead>
    <tbody>
        {#foreach $T.List as item}
        <tr class="{#cycle values=['','evenRow']} {#if $T.item.Todo}alert{#/if}" id="{$T.item.ID}">
            <td align="center" style="width: 25px">
                {$T.item$index + 1 + ($T.PageNum - 1) * $T.PageSize}
            </td>
            {#include ROW root=$T.item}
            <td style="width: 20px">
                <a href="javascript:void(0)"
                    rel="{$T.item.ID}" class="btn remove"></a>
            </td>
        </tr>
        {#/for}
    </tbody>
</table>
{#/template MAIN} {#template ROW}
<td style="width: 80px">
    {$T.AuthorizedBy}
</td>
<td style="width: 80px">
    {$T.AuthorizedPerson}
</td>
<td style="width: 160px">
    {$T.StartDateText}
</td>
<td style="width: 160px">
    {$T.EndDateText}
</td>
{#/template ROW}